<?php
$host="127.0.0.1";
$user="root";
$password="2333";
$dbname="ys";
$link=new MySQLi($host,$user,$password,$dbname);
mysqli_set_charset($link,'utf8');
if($link->connect_error){
	die ("连接失败:".$link->connect_error);
}
?>